<?php

declare(strict_types=1);

namespace App\Model\Orders;

use App\Model\Model;

/**
 * @property int $id 
 * @property int $order_id 订单ID
 * @property int $status 是否成功|["否","是"]
 * @property string $url 请求路径
 * @property string $request_type 请求方式
 * @property array $request 请求参数
 * @property array $response 响应参数
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class OrderDeclare extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'order_declare';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'order_id', 'status', 'url', 'request_type', 'request', 'response', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [
        'id' => 'integer',
        'order_id' => 'integer',
        'status' => 'integer',
        'request' => 'array',
        'response' => 'array',
        'created_at' => 'datetime',
        'updated_at' => 'datetime'
    ];
}
